import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// 将搜索作为全局组件
import SearchBar from '@/components/searchBar'
import Loading from '@/components/loading'
import pullRefresh from '@/components/pullRefresh'
import '@/utils/directive'
import * as help from '@/utils/help'
// 导入Vant
// import Vant from 'vant'
// 加载Vant的样式
// import 'vant/lib/index.css'
// 导入swiper样式
import 'swiper/css/swiper.css'
// 引入全局样式
import '@/styles/index.less'
// 全局注册Vant所有组件
// Vue.use(Vant)

Vue.prototype._help = help
Vue.component(SearchBar.name, SearchBar)
Vue.component(Loading.name, Loading)
Vue.component(pullRefresh.name, pullRefresh)

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
